\hypertarget{classrts_1_1units_1_1_unit_definition}{
\section{rts.units.UnitDefinition Class Reference}
\label{classrts_1_1units_1_1_unit_definition}\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}}
}


A general unit defintiion that could turn out to be anything.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classrts_1_1units_1_1_unit_definition_af7559fcd7f1a6c67ca44120cdb58e4ad}{UnitDefinition} ()
\item 
\hyperlink{classrts_1_1units_1_1_unit_definition_ac3cb15d9b730d04c764985b27b75aaa7}{UnitDefinition} (int resourceTypes)
\item 
\hyperlink{classrts_1_1units_1_1_unit_definition}{UnitDefinition} \hyperlink{classrts_1_1units_1_1_unit_definition_a4abeb613a32c316d59bfb53598adb8c2}{clone} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a5e9e7594b9c96ee78eba7594fdd5c7e0}{getDamage} ()
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_definition_a621eaa47f5ce5487e99be5d582c54c33}{cost}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a9a1bbc5eb71c750e90afc3a79dc3b77e}{vision}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a10e9d5f6303b4163258104d1bb8288f4}{attack\_\-range}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_afecdbd9a5890ebb475d34a5834a0abc0}{hp}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a35c3e9d08e32aa6554de76e3c7d22b7a}{attack\_\-min}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a2acacfe67b538b94d5e1aecd00aa8a34}{produce\_\-speed}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_ab56da53694b3eeec7e24fba6fc3aa500}{is\_\-worker}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_ad16bc63a9121e6d327accfb49491845b}{is\_\-flying}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_a02c546537c02fc39ab83369d9aae7ab6}{is\_\-resources}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_ad9cc09f9dae262a248847b08625ecf4f}{is\_\-building}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_ab7c8fcae3721ec03d2dfa3464bedcfa0}{is\_\-stockpile\_\-building}
\item 
String \hyperlink{classrts_1_1units_1_1_unit_definition_af295ec9a14f5e3168e03fe657faac23c}{label}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_adb712577cc331591cb2c7023a7cbf82e}{resources\_\-type}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_af0c5b79341dc1b40aadb99ef41de109c}{harvest\_\-speed}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a341c9c6afecb398f663bcdfe627f3f9f}{harvest\_\-amt}
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_definition_a4814093e7c3fdd9fd653c6d5a057158a}{produces}
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_definition_acc95d3f7943d9a68537bcfd80663e40f}{unit\_\-upgrades}
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_definition_ad4d0d9e8a8c96ee9e72e96cb155ee2e1}{building\_\-upgrades}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a1fb7a92875b49c8b303c57dede72a197}{type}
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_definition_a19733b35d9f65bd6e4f725d6780be34c}{active\_\-player}
\end{DoxyCompactItemize}
\subsection*{Package Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a3435285522cf3943dcef94aba404eba7}{attack\_\-max}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_aaf34756a3b832aab9de9a64540fcceeb}{move\_\-speed}
\item 
int \hyperlink{classrts_1_1units_1_1_unit_definition_a2555800befb526043f8682e87960ff12}{attack\_\-speed}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
A general unit defintiion that could turn out to be anything. 

\begin{DoxyAuthor}{Author}
Jeff Bernard 
\end{DoxyAuthor}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classrts_1_1units_1_1_unit_definition_af7559fcd7f1a6c67ca44120cdb58e4ad}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!UnitDefinition@{UnitDefinition}}
\index{UnitDefinition@{UnitDefinition}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{UnitDefinition}]{\setlength{\rightskip}{0pt plus 5cm}rts.units.UnitDefinition.UnitDefinition (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_definition_af7559fcd7f1a6c67ca44120cdb58e4ad}
Creates a new definition \hypertarget{classrts_1_1units_1_1_unit_definition_ac3cb15d9b730d04c764985b27b75aaa7}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!UnitDefinition@{UnitDefinition}}
\index{UnitDefinition@{UnitDefinition}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{UnitDefinition}]{\setlength{\rightskip}{0pt plus 5cm}rts.units.UnitDefinition.UnitDefinition (
\begin{DoxyParamCaption}
\item[{int}]{resourceTypes}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_definition_ac3cb15d9b730d04c764985b27b75aaa7}
Creates a new definition 
\begin{DoxyParams}{Parameters}
{\em resourceTypes} & how many types of resources there are \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classrts_1_1units_1_1_unit_definition_a4abeb613a32c316d59bfb53598adb8c2}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!clone@{clone}}
\index{clone@{clone}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{clone}]{\setlength{\rightskip}{0pt plus 5cm}{\bf UnitDefinition} rts.units.UnitDefinition.clone (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_definition_a4abeb613a32c316d59bfb53598adb8c2}
Creates a clone of this unit definition \begin{DoxyReturn}{Returns}
clone 
\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_definition_a5e9e7594b9c96ee78eba7594fdd5c7e0}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!getDamage@{getDamage}}
\index{getDamage@{getDamage}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{getDamage}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.UnitDefinition.getDamage (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_definition_a5e9e7594b9c96ee78eba7594fdd5c7e0}
Returns a value in \mbox{[}attack\_\-min, attack\_\-max\mbox{]} \begin{DoxyReturn}{Returns}

\end{DoxyReturn}


\subsection{Member Data Documentation}
\hypertarget{classrts_1_1units_1_1_unit_definition_a19733b35d9f65bd6e4f725d6780be34c}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!active\_\-player@{active\_\-player}}
\index{active\_\-player@{active\_\-player}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{active\_\-player}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.active\_\-player}}}
\label{classrts_1_1units_1_1_unit_definition_a19733b35d9f65bd6e4f725d6780be34c}
whether or not this is the active player \hypertarget{classrts_1_1units_1_1_unit_definition_a3435285522cf3943dcef94aba404eba7}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!attack\_\-max@{attack\_\-max}}
\index{attack\_\-max@{attack\_\-max}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{attack\_\-max}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.attack\_\-max}\hspace{0.3cm}{\ttfamily  \mbox{[}package\mbox{]}}}}
\label{classrts_1_1units_1_1_unit_definition_a3435285522cf3943dcef94aba404eba7}
\hypertarget{classrts_1_1units_1_1_unit_definition_a35c3e9d08e32aa6554de76e3c7d22b7a}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!attack\_\-min@{attack\_\-min}}
\index{attack\_\-min@{attack\_\-min}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{attack\_\-min}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.attack\_\-min}}}
\label{classrts_1_1units_1_1_unit_definition_a35c3e9d08e32aa6554de76e3c7d22b7a}
\hypertarget{classrts_1_1units_1_1_unit_definition_a10e9d5f6303b4163258104d1bb8288f4}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!attack\_\-range@{attack\_\-range}}
\index{attack\_\-range@{attack\_\-range}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{attack\_\-range}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.attack\_\-range}}}
\label{classrts_1_1units_1_1_unit_definition_a10e9d5f6303b4163258104d1bb8288f4}
\hypertarget{classrts_1_1units_1_1_unit_definition_a2555800befb526043f8682e87960ff12}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!attack\_\-speed@{attack\_\-speed}}
\index{attack\_\-speed@{attack\_\-speed}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{attack\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.attack\_\-speed}\hspace{0.3cm}{\ttfamily  \mbox{[}package\mbox{]}}}}
\label{classrts_1_1units_1_1_unit_definition_a2555800befb526043f8682e87960ff12}
\hypertarget{classrts_1_1units_1_1_unit_definition_ad4d0d9e8a8c96ee9e72e96cb155ee2e1}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!building\_\-upgrades@{building\_\-upgrades}}
\index{building\_\-upgrades@{building\_\-upgrades}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{building\_\-upgrades}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ {\bf rts.units.UnitDefinition.building\_\-upgrades}}}
\label{classrts_1_1units_1_1_unit_definition_ad4d0d9e8a8c96ee9e72e96cb155ee2e1}
\hypertarget{classrts_1_1units_1_1_unit_definition_a621eaa47f5ce5487e99be5d582c54c33}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!cost@{cost}}
\index{cost@{cost}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{cost}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ {\bf rts.units.UnitDefinition.cost}}}
\label{classrts_1_1units_1_1_unit_definition_a621eaa47f5ce5487e99be5d582c54c33}
\hypertarget{classrts_1_1units_1_1_unit_definition_a341c9c6afecb398f663bcdfe627f3f9f}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!harvest\_\-amt@{harvest\_\-amt}}
\index{harvest\_\-amt@{harvest\_\-amt}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{harvest\_\-amt}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.harvest\_\-amt}}}
\label{classrts_1_1units_1_1_unit_definition_a341c9c6afecb398f663bcdfe627f3f9f}
\hypertarget{classrts_1_1units_1_1_unit_definition_af0c5b79341dc1b40aadb99ef41de109c}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!harvest\_\-speed@{harvest\_\-speed}}
\index{harvest\_\-speed@{harvest\_\-speed}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{harvest\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.harvest\_\-speed}}}
\label{classrts_1_1units_1_1_unit_definition_af0c5b79341dc1b40aadb99ef41de109c}
\hypertarget{classrts_1_1units_1_1_unit_definition_afecdbd9a5890ebb475d34a5834a0abc0}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!hp@{hp}}
\index{hp@{hp}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{hp}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.hp}}}
\label{classrts_1_1units_1_1_unit_definition_afecdbd9a5890ebb475d34a5834a0abc0}
\hypertarget{classrts_1_1units_1_1_unit_definition_ad9cc09f9dae262a248847b08625ecf4f}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!is\_\-building@{is\_\-building}}
\index{is\_\-building@{is\_\-building}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{is\_\-building}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.is\_\-building}}}
\label{classrts_1_1units_1_1_unit_definition_ad9cc09f9dae262a248847b08625ecf4f}
\hypertarget{classrts_1_1units_1_1_unit_definition_ad16bc63a9121e6d327accfb49491845b}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!is\_\-flying@{is\_\-flying}}
\index{is\_\-flying@{is\_\-flying}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{is\_\-flying}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.is\_\-flying}}}
\label{classrts_1_1units_1_1_unit_definition_ad16bc63a9121e6d327accfb49491845b}
flying units can move over obstructed terrain. Non-\/flying units can not \hypertarget{classrts_1_1units_1_1_unit_definition_a02c546537c02fc39ab83369d9aae7ab6}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!is\_\-resources@{is\_\-resources}}
\index{is\_\-resources@{is\_\-resources}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{is\_\-resources}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.is\_\-resources}}}
\label{classrts_1_1units_1_1_unit_definition_a02c546537c02fc39ab83369d9aae7ab6}
\hypertarget{classrts_1_1units_1_1_unit_definition_ab7c8fcae3721ec03d2dfa3464bedcfa0}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!is\_\-stockpile\_\-building@{is\_\-stockpile\_\-building}}
\index{is\_\-stockpile\_\-building@{is\_\-stockpile\_\-building}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{is\_\-stockpile\_\-building}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.is\_\-stockpile\_\-building}}}
\label{classrts_1_1units_1_1_unit_definition_ab7c8fcae3721ec03d2dfa3464bedcfa0}
\hypertarget{classrts_1_1units_1_1_unit_definition_ab56da53694b3eeec7e24fba6fc3aa500}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!is\_\-worker@{is\_\-worker}}
\index{is\_\-worker@{is\_\-worker}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{is\_\-worker}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf rts.units.UnitDefinition.is\_\-worker}}}
\label{classrts_1_1units_1_1_unit_definition_ab56da53694b3eeec7e24fba6fc3aa500}
\hypertarget{classrts_1_1units_1_1_unit_definition_af295ec9a14f5e3168e03fe657faac23c}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!label@{label}}
\index{label@{label}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{label}]{\setlength{\rightskip}{0pt plus 5cm}String {\bf rts.units.UnitDefinition.label}}}
\label{classrts_1_1units_1_1_unit_definition_af295ec9a14f5e3168e03fe657faac23c}
\hypertarget{classrts_1_1units_1_1_unit_definition_aaf34756a3b832aab9de9a64540fcceeb}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!move\_\-speed@{move\_\-speed}}
\index{move\_\-speed@{move\_\-speed}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{move\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.move\_\-speed}\hspace{0.3cm}{\ttfamily  \mbox{[}package\mbox{]}}}}
\label{classrts_1_1units_1_1_unit_definition_aaf34756a3b832aab9de9a64540fcceeb}
\hypertarget{classrts_1_1units_1_1_unit_definition_a2acacfe67b538b94d5e1aecd00aa8a34}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!produce\_\-speed@{produce\_\-speed}}
\index{produce\_\-speed@{produce\_\-speed}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{produce\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.produce\_\-speed}}}
\label{classrts_1_1units_1_1_unit_definition_a2acacfe67b538b94d5e1aecd00aa8a34}
\hypertarget{classrts_1_1units_1_1_unit_definition_a4814093e7c3fdd9fd653c6d5a057158a}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!produces@{produces}}
\index{produces@{produces}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{produces}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ {\bf rts.units.UnitDefinition.produces}}}
\label{classrts_1_1units_1_1_unit_definition_a4814093e7c3fdd9fd653c6d5a057158a}
\hypertarget{classrts_1_1units_1_1_unit_definition_adb712577cc331591cb2c7023a7cbf82e}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!resources\_\-type@{resources\_\-type}}
\index{resources\_\-type@{resources\_\-type}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{resources\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.resources\_\-type}}}
\label{classrts_1_1units_1_1_unit_definition_adb712577cc331591cb2c7023a7cbf82e}
\hypertarget{classrts_1_1units_1_1_unit_definition_a1fb7a92875b49c8b303c57dede72a197}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!type@{type}}
\index{type@{type}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.type}}}
\label{classrts_1_1units_1_1_unit_definition_a1fb7a92875b49c8b303c57dede72a197}
\hypertarget{classrts_1_1units_1_1_unit_definition_acc95d3f7943d9a68537bcfd80663e40f}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!unit\_\-upgrades@{unit\_\-upgrades}}
\index{unit\_\-upgrades@{unit\_\-upgrades}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{unit\_\-upgrades}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ {\bf rts.units.UnitDefinition.unit\_\-upgrades}}}
\label{classrts_1_1units_1_1_unit_definition_acc95d3f7943d9a68537bcfd80663e40f}
\hypertarget{classrts_1_1units_1_1_unit_definition_a9a1bbc5eb71c750e90afc3a79dc3b77e}{
\index{rts::units::UnitDefinition@{rts::units::UnitDefinition}!vision@{vision}}
\index{vision@{vision}!rts::units::UnitDefinition@{rts::units::UnitDefinition}}
\subsubsection[{vision}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf rts.units.UnitDefinition.vision}}}
\label{classrts_1_1units_1_1_unit_definition_a9a1bbc5eb71c750e90afc3a79dc3b77e}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
src/rts/units/\hyperlink{_unit_definition_8java}{UnitDefinition.java}\end{DoxyCompactItemize}
